
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent))
{ //test for MSIE x.x;

	var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
	if (ieversion <= 6) 
	{
		var r=confirm("Hi! It looks like you're using Internet Explorer 6 or lower, this is very bad :( \n" + document.domain + " highly recommends installing a better browser. Click OK and we'll send you to page \nto help you install a better browser. \n\nPlease come back to " + document.domain + " on a better browser!");
		if(r==true) window.location="http://abetterbrowser.org";
	}
}